package org.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.bean.ShoppingCart;
import org.example.util.JsonResult;
import org.springframework.stereotype.Service;

@Service
public interface ShoppingCartService extends IService<ShoppingCart> {
    JsonResult add(String bookId,String token);
    JsonResult find(String token);
    JsonResult changCartNumber(String token,String bookId,int number);
    JsonResult changCartNumber2(String token,String bookId,int number);
    JsonResult removeCartById(String token,String bookId);
    JsonResult batchRemoveCart(String token,String[] ids);
}
